<div class="row m-n">
    <div class="crumbs-bar">
        <div yb-crumbs></div>
    </div>
    <div tabset type="tab">
        <div tab heading="代理商订单满足率" active="activeFlag[0]">
            <div class="row wrapper-y-sm">
                <div class="search-bar wrapper-none col-xs-12">
                    <div class="btn-group m-l-xs pull-right">
                        <button type="button" class="btn btn-default base-color" ng-click="searchAgent(1)" title="刷新">
                            <i class="yb-icon ico-refresh"></i>
                        </button>
                        <button type="button" class="btn btn-default base-color" title="配置表格列"
                                ng-click="switchToolbar('showAgentColConfig');">
                            <i class="yb-icon ico-set"></i>
                        </button>
                        <div class="btn btn-default base-color" ng-if="!!btnPermission.saleOutboundExport">
                            <div title="导出" yb-download download-url="exportParam.agentUrl" download-param="condition.agent">
                                <i class="yb-icon ico-export-o"></i>
                            </div>
                        </div>
                    </div>
                    <button class="btn-advance pull-right m-l-xs" ng-click="switchToolbar('showAgentAdSearch')">高级搜索</button>
                    <div class="input-group pull-right clearfix">
                        <input type="text" class="form-control txt-search" placeholder="代理商"
                               ng-model="condition.agent.name">
                        <span class="input-group-addon cursor-pointer" ng-click="searchAgent(1)">搜索</span>
                    </div>
                </div>
                <div yb-advance-search show-toolbar="toolbarConfig.showAgentAdSearch" search-data="searchAgent(1)" reset-data="reset('agent')">
                    <div class="advance-search m-t-sm">
                        <div class="form-group clearfix">
                            <label class="control-label">年度：</label>
                            <input type="text" class="form-control date-picker" ng-model="condition.agent.year"
                                   datepicker-popup="{{'yyyy'}}" datepicker-options="{{dateOptions}}"
                                   ng-click="showAgentYear = !showAgentYear"
                                   is-open="showAgentYear" close-text="关闭" modal-size="small" readonly>
                        </div>
                        <div class="form-group clearfix">
                            <label class="control-label">半年度：</label>
                            <select ng-disabled="!condition.agent.year" ng-model="condition.agent.halfYear"
                                    ng-options="item.value as item.name for item in halfYearOptions" class="form-control">
                                <option value="">请选择</option>
                            </select>
                        </div>
                        <div class="form-group clearfix">
                            <label class="control-label">季度：</label>
                            <select ng-disabled="!condition.agent.year" ng-model="condition.agent.season"
                                    ng-options="item.value as item.name for item in seasonOptions" class="form-control">
                                <option value="">请选择</option>
                            </select>
                        </div>
                        <div class="form-group clearfix">
                            <label class="control-label">月度：</label>
                            <select ng-disabled="!condition.agent.year" ng-model="condition.agent.month"
                                    ng-options="item.value as item.name for item in monthOptions" class="form-control">
                                <option value="">请选择</option>
                            </select>
                        </div>
                    </div>
                </div>
            </div>
            <div yb-col-config show-toolbar="toolbarConfig.showAgentColConfig" ng-model="tbConf" col-fixed="false"
                 has-check-col="true"></div>
            <div class="main-area">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x" style="height:41px;">
                        <table class="table-fixed border-none" width="{{tbConf.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th width="{{agentCol.width}}" class="text-center">
                                        <div yb-thead-operate ng-model="agentCol" target-width="tbConf.scrollWidth"></div>
                                    </th>
                                    <th ng-repeat="itemCol in tbConf.tableCol track by $index" class="text-center"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow">
                                        <div yb-thead-operate ng-model="itemCol" target-width="tbConf.scrollWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="dataList.agent.length > 0" style="top:41px;">
                        <table class="table-fixed border-none" width="{{tbConf.scrollWidth}}">
                            <tbody>
                            <tr ng-repeat="item in dataList.agent track by $index">
                                <td width="{{agentCol.width}}" class="text-center spill-dots">
                                   <span>{{item[agentCol.dataField]}}</span>
                                </td>
                                <td class="text-center spill-dots" ng-repeat="itemCol in tbConf.tableCol track by $index"
                                    width="{{itemCol.width}}" ng-show="!!itemCol.isShow" title="{{item[itemCol.dataField]}}">
                                    <span ng-if="!itemCol.clickFn && itemCol.type !== 'operate'">{{item[itemCol.dataField]}}</span>
                                    <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)" ng-if="!!itemCol.clickFn">
                                        {{item[itemCol.dataField]}}
                                    </a>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="dataList.agent.length === 0" style="top:41px;">暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area page-bar wrapper-y-sm clearfix">
                <div yb-page-info ng-model="agentPageInfo" yb-refresh="searchAgent()"></div>
            </div>
        </div>
        <div tab heading="调度员订单满足率" active="activeFlag[1]">
            <div class="row wrapper-y-sm">
                <div class="search-bar wrapper-none col-xs-12">
                    <div class="btn-group m-l-xs pull-right">
                        <button type="button" class="btn btn-default base-color" ng-click="searchDispatch(1)" title="刷新">
                            <i class="yb-icon ico-refresh"></i>
                        </button>
                        <button type="button" class="btn btn-default base-color" title="配置表格列"
                                ng-click="switchToolbar('showDispatchColConfig');">
                            <i class="yb-icon ico-set"></i>
                        </button>
                        <div class="btn btn-default base-color" ng-if="!!btnPermission.saleOutboundExport">
                            <div title="导出" yb-download download-url="exportParam.dispatchUrl" download-param="condition.dispatch">
                                <i class="yb-icon ico-export-o"></i>
                            </div>
                        </div>
                    </div>
                    <button class="btn-advance pull-right m-l-xs" ng-click="switchToolbar('showDispatchAdSearch')">高级搜索</button>
                    <div class="input-group pull-right clearfix">
                        <input type="text" class="form-control txt-search" placeholder="调度员"
                               ng-model="condition.dispatch.name">
                        <span class="input-group-addon cursor-pointer" ng-click="searchDispatch(1)">搜索</span>
                    </div>
                </div>
                <div yb-advance-search show-toolbar="toolbarConfig.showDispatchAdSearch" search-data="searchDispatch(1)" reset-data="reset('dispatch')">
                    <div class="advance-search m-t-sm">
                        <div class="form-group clearfix">
                            <label class="control-label">年度：</label>
                            <input type="text" class="form-control date-picker" ng-model="condition.dispatch.year"
                                   datepicker-popup="{{'yyyy'}}" datepicker-options="{{dateOptions}}"
                                   ng-click="showDispatchYear = !showDispatchYear"
                                   is-open="showDispatchYear" close-text="关闭" modal-size="small" readonly>
                        </div>
                        <div class="form-group clearfix">
                            <label class="control-label">半年度：</label>
                            <select ng-disabled="!condition.dispatch.year" class="form-control" ng-model="condition.dispatch.halfYear"
                                    ng-options="item.value as item.name for item in halfYearOptions">
                                <option value="">请选择</option>
                            </select>
                        </div>
                        <div class="form-group clearfix">
                            <label class="control-label">季度：</label>
                            <select ng-disabled="!condition.dispatch.year" ng-model="condition.dispatch.season"
                                    ng-options="item.value as item.name for item in seasonOptions" class="form-control">
                                <option value="">请选择</option>
                            </select>
                        </div>
                        <div class="form-group clearfix">
                            <label class="control-label">月度：</label>
                            <select ng-disabled="!condition.dispatch.year" ng-model="condition.dispatch.month"
                                    ng-options="item.value as item.name for item in monthOptions" class="form-control">
                                <option value="">请选择</option>
                            </select>
                        </div>
                    </div>
                </div>
            </div>
            <div yb-col-config show-toolbar="toolbarConfig.showDispatchColConfig" ng-model="tbConf" col-fixed="false"
                 has-check-col="true"></div>
            <div class="main-area">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x" style="height:41px;">
                        <table class="table-fixed border-none" width="{{tbConf.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th width="{{dispatchCol.width}}" class="text-center">
                                        <div yb-thead-operate ng-model="dispatchCol" target-width="tbConf.scrollWidth"></div>
                                    </th>
                                    <th ng-repeat="itemCol in tbConf.tableCol track by $index" class="text-center"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow">
                                        <div yb-thead-operate ng-model="itemCol" target-width="tbConf.scrollWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="dataList.dispatch.length > 0" style="top:41px;">
                        <table class="table-fixed border-none" width="{{tbConf.scrollWidth}}">
                            <tbody>
                            <tr ng-repeat="item in dataList.dispatch track by $index">
                                <td width="{{dispatchCol.width}}" class="text-center spill-dots">
                                    <span>{{item[dispatchCol.dataField]}}</span>
                                </td>
                                <td class="text-center spill-dots" ng-repeat="itemCol in tbConf.tableCol track by $index"
                                    width="{{itemCol.width}}" ng-show="!!itemCol.isShow" title="{{item[itemCol.dataField]}}">
                                    <span ng-if="!itemCol.clickFn && itemCol.type !== 'operate'">{{item[itemCol.dataField]}}</span>
                                    <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)" ng-if="!!itemCol.clickFn">
                                        {{item[itemCol.dataField]}}
                                    </a>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="dataList.dispatch.length === 0" style="top:41px;">暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area page-bar wrapper-y-sm clearfix">
                <div yb-page-info ng-model="dispatchPageInfo" yb-refresh="searchDispatch()"></div>
            </div>
        </div>
        <div tab heading="采购组订单满足率" active="activeFlag[2]">
            <div class="row wrapper-y-sm">
                <div class="search-bar wrapper-none col-xs-12">
                    <div class="btn-group m-l-xs pull-right">
                        <button type="button" class="btn btn-default base-color" ng-click="searchPurchase(1)" title="刷新">
                            <i class="yb-icon ico-refresh"></i>
                        </button>
                        <button type="button" class="btn btn-default base-color" title="配置表格列"
                                ng-click="switchToolbar('showPurchaseColConfig');">
                            <i class="yb-icon ico-set"></i>
                        </button>
                        <div class="btn btn-default base-color" ng-if="!!btnPermission.saleOutboundExport">
                            <div title="导出" yb-download download-url="exportParam.purchaseUrl" download-param="condition.purchase">
                                <i class="yb-icon ico-export-o"></i>
                            </div>
                        </div>
                    </div>
                    <button class="btn-advance pull-right m-l-xs" ng-click="switchToolbar('showPurchaseAdSearch')">高级搜索</button>
                    <div class="input-group pull-right clearfix">
                        <input type="text" class="form-control txt-search" placeholder="采购组"
                               ng-model="condition.purchase.name">
                        <span class="input-group-addon cursor-pointer" ng-click="searchPurchase(1)">搜索</span>
                    </div>
                </div>
                <div yb-advance-search show-toolbar="toolbarConfig.showPurchaseAdSearch" search-data="searchPurchase(1)" reset-data="reset('purchase')">
                    <div class="advance-search m-t-sm">
                        <div class="form-group clearfix">
                            <label class="control-label">年度：</label>
                            <input type="text" class="form-control date-picker" ng-model="condition.purchase.year"
                                   datepicker-popup="{{'yyyy'}}" datepicker-options="{{dateOptions}}"
                                   ng-click="showPurchaseYear = !showPurchaseYear"
                                   is-open="showPurchaseYear" close-text="关闭" modal-size="small" readonly>
                        </div>
                        <div class="form-group clearfix">
                            <label class="control-label">半年度：</label>
                            <select ng-disabled="!condition.purchase.year" name="status" class="form-control" ng-model="condition.purchase.halfYear"
                                    ng-options="item.value as item.name for item in halfYearOptions">
                                <option value="">请选择</option>
                            </select>
                        </div>
                        <div class="form-group clearfix">
                            <label class="control-label">季度：</label>
                            <select ng-disabled="!condition.purchase.year" ng-model="condition.purchase.season"
                                    ng-options="item.value as item.name for item in seasonOptions" class="form-control">
                                <option value="">请选择</option>
                            </select>
                        </div>
                        <div class="form-group clearfix">
                            <label class="control-label">月度：</label>
                            <select ng-disabled="!condition.purchase.year" ng-model="condition.purchase.month"
                                    ng-options="item.value as item.name for item in monthOptions" class="form-control">
                                <option value="">请选择</option>
                            </select>
                        </div>
                    </div>
                </div>
            </div>
            <div yb-col-config show-toolbar="toolbarConfig.showPurchaseColConfig" ng-model="tbConf" col-fixed="false"
                 has-check-col="true"></div>
            <div class="main-area">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x" style="height:41px;">
                        <table class="table-fixed border-none" width="{{tbConf.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th width="{{purchaseCol.width}}" class="text-center">
                                        <div yb-thead-operate ng-model="purchaseCol" target-width="tbConf.scrollWidth"></div>
                                    </th>
                                    <th ng-repeat="itemCol in tbConf.tableCol track by $index" class="text-center"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow">
                                        <div yb-thead-operate ng-model="itemCol" target-width="tbConf.scrollWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="dataList.purchase.length > 0" style="top:41px;">
                        <table class="table-fixed border-none" width="{{tbConf.scrollWidth}}">
                            <tbody>
                            <tr ng-repeat="item in dataList.purchase track by $index">
                                <td width="{{purchaseCol.width}}" class="text-center spill-dots" title="{{item.name}}">
                                    <span>{{item[purchaseCol.dataField]}}</span>
                                </td>
                                <td class="text-center spill-dots" ng-repeat="itemCol in tbConf.tableCol track by $index"
                                    width="{{itemCol.width}}" ng-show="!!itemCol.isShow" title="{{item[itemCol.dataField]}}">
                                    <span ng-if="!itemCol.clickFn && itemCol.type !== 'operate'">{{item[itemCol.dataField]}}</span>
                                    <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)" ng-if="!!itemCol.clickFn">
                                        {{item[itemCol.dataField]}}
                                    </a>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="dataList.purchase.length === 0" style="top:41px;">暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area page-bar wrapper-y-sm clearfix">
                <div yb-page-info ng-model="purchasePageInfo" yb-refresh="searchPurchase()"></div>
            </div>
        </div>
    </div>
</div>
